Skip to content

[ISSUE #227] Fix inconsistent Broker data across different RocketMQ NameServers. - #228

Open
shangjin92 wants to merge 1 commit into
apache:masterfrom
shangjin92:fix/nameserver/meta-inconsistent
Open

[ISSUE #227] Fix inconsistent Broker data across different RocketMQ NameServers.#228
shangjin92 wants to merge 1 commit into
apache:masterfrom
shangjin92:fix/nameserver/meta-inconsistent

Conversation

@shangjin92

Copy link
Copy Markdown
Contributor
  1. fix Inconsistent Broker data retrieved from different RocketMQ NameServers. #227
  2. Refactor ReconcileBroker by extracting EnsureBrokerStatefulSets method.

@RockteMQ-AI RockteMQ-AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: Approved ✅

PR: #228 — [ISSUE #227] Fix inconsistent Broker data across different NameServers
Type: Bug fix (1 file, +55/-31)

Assessment

Fixes data inconsistency issue where broker information could differ across NameServers. Also refactors ReconcileBroker by extracting EnsureBrokerStatefulSets method for better code organization.

Verdict

✅ Important bug fix with clean refactoring. Addresses a real data consistency concern.


🤖 Automated review by oss-sentinel-ai

@RockteMQ-AI RockteMQ-AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM — Good fix for NameServer address inconsistency across brokers. The key improvement is the else branch in EnsureBrokerStatefulSets that detects when an existing StatefulSet's NAMESRV_ADDR env var differs from the current NameServersStr, triggering a broker update. The refactor into a separate method also improves readability.

Minor note: found.Spec.Template.Spec.Containers[0] is accessed without a bounds check, but this is safe given the operator always creates StatefulSets with at least one container.


Automated review by github-manager-bot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistent Broker data retrieved from different RocketMQ NameServers.

2 participants